-- teammenu.lua
--
-- Displays the team selection menu. This should be shown on join.
--

-- TeamMenu
--
-- Renders display menu.
--
TeamMenu = function()
  local frame = vgui.Create("DFrame")
  local width = ScrH() / 3
  local height = width

  frame:SetSize(height, height)
  frame:SetMinWidth(200)
  frame:SetMinHeight(height / 2 + 50)
  frame:SetSizable(true)
  frame:SetPos((ScrW() / 2) - (width / 2), (ScrH() / 2) - (height / 2)) 
  frame:SetTitle("Team Selection")
  frame:SetVisible(true)
  frame:SetDraggable(true)
  frame:ShowCloseButton(true)
  frame:SetDeleteOnClose(false)
  frame:MakePopup()
end